		
<%@page import="javax.jdo.PersistenceManager"%>
<%@page import="com.ykwep.web.server.PMF"%>
<%@page import="com.ykwep.web.server.data.NewsItem"%>
<%@page import="java.util.List"%>		
		
		<%
		List<NewsItem> newsItems = NewsItem.getLatestNewsItems(2);
    if (newsItems.isEmpty()) {
%>

<p>There are no news.</p>
<%
    } else {
        for (NewsItem g : newsItems) {
%>
		<div class="entry">
			<div class="entry-title"><a href="#"><%=g.getTitle() %></a></div>
			<div class="date"><%=g.getDate() %></div>
			<p><%=g.getContent() %></p>
			<!--  <div class="comments"><a href="#">3 comments</a></div> -->
		</div>
<%
        }
    }
%>
<p><a href="/all_news.jsp">All News</a></p>